From 25d006eac1d10ab81a3c197875e1b3cf286918bb Mon Sep 17 00:00:00 2001 From: Iqbal Ansari Date: Fri, 13 Nov 2015 08:53:24 +0530 Subject: [PATCH] Include keybindings of the form 'a .. z' in which key popup --- which-key.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/which-key.el b/which-key.el index ed156794468..fea86ab304a 100644 --- a/which-key.el +++ b/which-key.el @@ -1253,14 +1253,17 @@ BUFFER that follow the key sequence KEY-SEQ." ;; or `modeline' which might not be as interesting) ;; the initial sequence should be followed by one ;; or more tab/space which are then followed by a - ;; sequence of non newline/tab characters + ;; sequence of non newline/tab characters. + ;; Additionally keybindings of the form [a-z] + ;; .. [a-z] are also matched ;; For example the following should match ;; C-x Prefix Command ;; Some command + ;; a .. z Some command ;; But following should not ;; C-x 8 Prefix Command ;; Prefix Command - "^\\([^ <>\t]+\\|\\)[ \t]+\\([^\t\n]+\\)$")) + "^\\([^ <>\t]+\\|\\|\\w \\.\\. \\w\\)[ \t]+\\([^\t\n]+\\)$")) (lines-to-flush'("[bB]inding[s]?[:]?$" "translations:$" "-------$")) key-match desc-match unformatted) (save-match-data -- 2.30.2